<template>
	<div>
		<h1>Home</h1>
		<p>{{ age }}</p>
		<ElButton>按钮</ElButton>
		<ElDatePicker
			v-model="date"
			type="daterange"
			start-placeholder="开始日期"
			end-placeholder="结束日期"
			value-format="YYYY-MM-DD"
		/>
	</div>
</template>

<script>
import { mapState } from "vuex";
import { ElButton, ElDatePicker } from "element-plus";

export default {
	name: "Home",
	computed: {
		...mapState("home", ["age"]),
	},
	data() {
		return {
			date: [],
		};
	},
	components: {
		ElButton,
		ElDatePicker,
	},
};
</script>

<style></style>
